package com.book.service;

import com.book.entity.Book;
import com.book.entity.Borrow;

import java.util.List;
import java.util.Map;

public interface BookService {
    List<Borrow> getBorrowList();

    int deleteBorrowById(int id);

    List<Book> getActiveBookList();

    Map<Book,Boolean> getBookList();

    int addBorrow(int sid,int bid);

    int deleteBookByBid(int bid);

    int addBook(String title,String desc,double price);

    List<Borrow> getBorrowListLike(String msg);

    Map<Book,Boolean> getBookListLike(String msg);

    int updateStudent(Book book);
}
